/**
 * 
 */
package com.roc.pojo;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author Ren PengFei
 * 
 */
@Entity
@Table(name = "T_operators")
public class Operators extends BaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2119249374395756217L;
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "operatorsSeq")
	@SequenceGenerator(name = "operatorsSeq", sequenceName = "SEQ_OPERATORS1",allocationSize=1)
	private long id;
	@Column(name = "account_no")
	private String accountNo;
	@Column(name = "real_name")
	private String realName;   // 	名称
	private String pwd;
	@Column(name = "card_type")
	private String cardType;// 证件类型
	@Column(name = "card_no")
	private String cardNo;// 证件号
	@Column(name = "mobile")
	private String mobile;
	@Column(name="telphone")
	private String telphone; //电话号码
	@Column(name="sex")
	private String sex;
	@Column(name="EMAIL")
	private String email;  //邮箱
	@Column(name="ADDRESS")
	private String address;
	
	//@Column(name = "operators")
	//private String operators;//操作员
	private String remark;
	@Column(name = "supri_id")//父类id
	private Long superiorId;
	@Column(name = "profit_rate")
	private double profitRate;
	private String status;
	@Column(name = "org_code")
	private String orgCode;
	@Column(name = "role_type")
	private String roleType;
	@Column(name = "valid_start_date")
	private String validStartDate;
	@Column(name = "valid_end_date")
	private String validEndDate;
	@Column(name = "bank_deposit")
	private String bankDeposit;// 开户行
	@Column(name = "bank_acct_name")
	private String bankAcctName;// 账户名称
	@Column(name = "bank_acct_no")
	private String bankAcctNo;// 银行账号
	
	@Column(name = "agent_type")
	private String agentType;
	@Column(name = "short_name")
	private String shortName;

	@Column(name = "business_person")
	private String businessPerson;
	@Column(name = "business_phone")
	private String businessPhone;
	@Column(name = "zipe_code")
	private String zipeCode;
	@Column(name = "qq")
	private String qq;
	@Column(name = "business_scope")
	private String businessScope;
	@Column(name = "business_licences")
	private String businessLicences;
	@Column(name = "tax_registration_certificate")
	private String taxRegistrationCertificate;
	@Column(name = "organization_code")
	private String organizationCode;
	@Column(name = "flag")
	private String flag;//标志 0 直营 1 O单
	@Column(name = "last_login_time")
	private String lastLoginTime;
	@Column(name = "login_ip")
	private String loginIp;
	@Column(name = "pwd_err_times")
	private int pwdErrTimes;
	@Column(name = "merber_flag")
	private String merberFlag;//合天下标识
	@Column(name = "updatePWD")
	private String updatePWD;
	@Column(name = "areacode")
	private String areaCode;//经营区域
	@Column(name = "bank_no")
	private String bank_no;//联行号
	
	
	@Column(name = "COMPANYID")
	private String companyid;// 所属大区[分公司]
	@Column(name = "ONEAGENTID")
	private String oneagentid;// 所属一级代理商
	@Column(name = "GROUP_CD")
	private String groupCd;// 集团商户      （先保存 直联1、间联 0、间联直营2）

	@Column(name = "DIRECT_FLAG")
	private String directFlag;// (1:非直营；2:直营(分公司))
				
	@Transient
	private String merLevelDesc;
	
	@Transient
	private List<ModuleCategory> menuList=new ArrayList<ModuleCategory>();
	
	@Transient
	private  List<ProfitRule> proList=new ArrayList<ProfitRule>();
	
	@Transient
	private Operators superMerchant;
	
	@Transient
	private String orgName;
	@Transient
	private String roleName;
	@Transient
	private String agentName;
	@Transient
	private String superiorName;
	@Transient
	private String statusDesc;
	
	@Transient
	private long count1;// 总进件数 
	@Transient
	private long count2;// 审核通过数
	@Transient
	private long count3;// 驳回数据
	@Transient
	private long count4;// 审核中数据
	@Transient
	private long count5;// 未审核数据

	@Transient
	private String companyName;// 所属大区[分公司] 名称
	@Transient
	private String oneagentName;// 所属一级代理商 名称

	@Transient
	private String dtCreateFmt ;

	@Transient
	private String dtLostmodFmt ;
	
	@Transient
	private  List<ProfitPercent> profitPerList =new ArrayList<ProfitPercent>();

	@Transient
	private String isUseDefModule;// 是否使用默认模板设置分润
	
	@Transient
	private Long supriSupriId;// 上级的上级id,用于收单事业部直接修改一级代理商信息
	
	@Transient
	private List<OperRole> operRoleList;
	@Transient
	private String areaIdRole;
	@Transient
	private List<TblOrgMain> inOrgMainList;
	@Transient
	private List<TblOrgMain> outOrgMainList;
	
	public List<TblOrgMain> getInOrgMainList() {
		return inOrgMainList;
	}

	public void setInOrgMainList(List<TblOrgMain> inOrgMainList) {
		this.inOrgMainList = inOrgMainList;
	}

	public List<TblOrgMain> getOutOrgMainList() {
		return outOrgMainList;
	}

	public void setOutOrgMainList(List<TblOrgMain> outOrgMainList) {
		this.outOrgMainList = outOrgMainList;
	}

	public String getAreaIdRole() {
		return areaIdRole;
	}

	public void setAreaIdRole(String areaIdRole) {
		this.areaIdRole = areaIdRole;
	}

	public List<OperRole> getOperRoleList() {
		return operRoleList;
	}

	public void setOperRoleList(List<OperRole> operRoleList) {
		this.operRoleList = operRoleList;
	}

	public String getUpdatePWD() {
		return updatePWD;
	}

	public void setUpdatePWD(String updatePWD) {
		this.updatePWD = updatePWD;
	}

	public String getStatusDesc() {
		return statusDesc;
	}

	public void setStatusDesc(String statusDesc) {
		this.statusDesc = statusDesc;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getAccountNo() {
		return accountNo;
	}

	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getTelphone() {
		return telphone;
	}

	public void setTelphone(String telphone) {
		this.telphone = telphone;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getBankDeposit() {
		return bankDeposit;
	}

	public void setBankDeposit(String bankDeposit) {
		this.bankDeposit = bankDeposit;
	}

	

	public String getBankAcctNo() {
		return bankAcctNo;
	}

	public void setBankAcctNo(String bankAcctNo) {
		this.bankAcctNo = bankAcctNo;
	}

	public Long getSuperiorId() {
		return superiorId;
	}

	public void setSuperiorId(Long superiorId) {
		this.superiorId = superiorId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**
	 * @return the menuList
	 */
	public List<ModuleCategory> getMenuList() {
		return menuList;
	}

	/**
	 * @param menuList the menuList to set
	 */
	public void setMenuList(List<ModuleCategory> menuList) {
		this.menuList = menuList;
	}

	
	
	/**
	 * @return the profitRebate
	 */
	public double getProfitRate() {
		return profitRate;
	}

	/**
	 * @param profitRebate the profitRebate to set
	 */
	public void setProfitRate(double profitRate) {
		this.profitRate = profitRate;
	}

	/**
	 * @return the status
	 */
	public String getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * @return the superMerchant
	 */
	public Operators getSuperMerchant() {
		return superMerchant;
	}

	/**
	 * @param superMerchant the superMerchant to set
	 */
	public void setSuperMerchant(Operators superMerchant) {
		this.superMerchant = superMerchant;
	}


	/**
	 * @return the orgCode
	 */
	public String getOrgCode() {
		return orgCode;
	}

	/**
	 * @param orgCode the orgCode to set
	 */
	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	/**
	 * @return the merLevelDesc
	 */
	public String getMerLevelDesc() {
		return merLevelDesc;
	}

	/**
	 * @param merLevelDesc the merLevelDesc to set
	 */
	public void setMerLevelDesc(String merLevelDesc) {
		this.merLevelDesc = merLevelDesc;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getBankAcctName() {
		return bankAcctName;
	}

	public void setBankAcctName(String bankAcctName) {
		this.bankAcctName = bankAcctName;
	}

	public String getAgentType() {
		return agentType;
	}

	public void setAgentType(String agentType) {
		this.agentType = agentType;
	}

	public String getRoleType() {
		return roleType;
	}

	public void setRoleType(String roleType) {
		this.roleType = roleType;
	}

	public String getValidStartDate() {
		return validStartDate;
	}

	public void setValidStartDate(String validStartDate) {
		this.validStartDate = validStartDate;
	}

	public String getValidEndDate() {
		return validEndDate;
	}

	public void setValidEndDate(String validEndDate) {
		this.validEndDate = validEndDate;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}


	public String getBusinessPerson() {
		return businessPerson;
	}

	public void setBusinessPerson(String businessPerson) {
		this.businessPerson = businessPerson;
	}

	public String getZipeCode() {
		return zipeCode;
	}

	public void setZipeCode(String zipeCode) {
		this.zipeCode = zipeCode;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}



	public String getBusinessLicences() {
		return businessLicences;
	}

	public void setBusinessLicences(String businessLicences) {
		this.businessLicences = businessLicences;
	}

	public String getTaxRegistrationCertificate() {
		return taxRegistrationCertificate;
	}

	public void setTaxRegistrationCertificate(String taxRegistrationCertificate) {
		this.taxRegistrationCertificate = taxRegistrationCertificate;
	}

	public String getOrganizationCode() {
		return organizationCode;
	}

	public void setOrganizationCode(String organizationCode) {
		this.organizationCode = organizationCode;
	}

	public String getBusinessPhone() {
		return businessPhone;
	}

	public void setBusinessPhone(String businessPhone) {
		this.businessPhone = businessPhone;
	}

	public String getBusinessScope() {
		return businessScope;
	}

	public void setBusinessScope(String businessScope) {
		this.businessScope = businessScope;
	}

	public List<ProfitRule> getProList() {
		return proList;
	}

	public void setProList(List<ProfitRule> proList) {
		this.proList = proList;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public String getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(String lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public int getPwdErrTimes() {
		return pwdErrTimes;
	}

	public void setPwdErrTimes(int pwdErrTimes) {
		this.pwdErrTimes = pwdErrTimes;
	}

	public String getAgentName() {
		return agentName;
	}

	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}

	public String getSuperiorName() {
		return superiorName;
	}

	public void setSuperiorName(String superiorName) {
		this.superiorName = superiorName;
	}

	public String getMerberFlag() {
		return merberFlag;
	}

	public void setMerberFlag(String merberFlag) {
		this.merberFlag = merberFlag;
	}

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public List<ProfitPercent> getProfitPerList() {
		return profitPerList;
	}

	public void setProfitPerList(List<ProfitPercent> profitPerList) {
		this.profitPerList = profitPerList;
	}

	public String getBank_no() {
		return bank_no;
	}

	public void setBank_no(String bankNo) {
		bank_no = bankNo;
	}

	public long getCount1() {
		return count1;
	}

	public void setCount1(long count1) {
		this.count1 = count1;
	}

	public long getCount2() {
		return count2;
	}

	public void setCount2(long count2) {
		this.count2 = count2;
	}

	public long getCount3() {
		return count3;
	}

	public void setCount3(long count3) {
		this.count3 = count3;
	}

	public String getCompanyid() {
		return companyid;
	}

	public void setCompanyid(String companyid) {
		this.companyid = companyid;
	}

	public String getOneagentid() {
		return oneagentid;
	}

	public void setOneagentid(String oneagentid) {
		this.oneagentid = oneagentid;
	}

	public long getCount4() {
		return count4;
	}

	public void setCount4(long count4) {
		this.count4 = count4;
	}

	public long getCount5() {
		return count5;
	}

	public void setCount5(long count5) {
		this.count5 = count5;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getGroupCd() {
		return groupCd;
	}

	public void setGroupCd(String groupCd) {
		this.groupCd = groupCd;
	}

	public String getIsUseDefModule() {
		return isUseDefModule;
	}

	public void setIsUseDefModule(String isUseDefModule) {
		this.isUseDefModule = isUseDefModule;
	}

	public String getOneagentName() {
		return oneagentName;
	}

	public void setOneagentName(String oneagentName) {
		this.oneagentName = oneagentName;
	}

	public String getDtCreateFmt() {
		return dtCreateFmt;
	}

	public void setDtCreateFmt(String dtCreateFmt) {
		this.dtCreateFmt = dtCreateFmt;
	}

	public String getDtLostmodFmt() {
		return dtLostmodFmt;
	}

	public void setDtLostmodFmt(String dtLostmodFmt) {
		this.dtLostmodFmt = dtLostmodFmt;
	}

	public Long getSupriSupriId() {
		return supriSupriId;
	}

	public void setSupriSupriId(Long supriSupriId) {
		this.supriSupriId = supriSupriId;
	}

	public String getDirectFlag() {
		return directFlag;
	}

	public void setDirectFlag(String directFlag) {
		this.directFlag = directFlag;
	}

}
